<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Klenwell Bafflegate Tracker Integration Test</title>

<!-- External Script -->
<script type="text/javascript" src=""></script>

<!-- Internal Script -->
<script type="text/javascript">
var global_timer_started = 0;
var global_tx0 = 0;
function js_timer() 
{
	if ( !global_timer_started )
	{
		global_timer_started = 1;
		global_tx0 = new Date();
		return;
	}
	else
	{
		var tx_now = new Date();
		return ( tx_now - global_tx0 ) / 1000; 
	}
}

// start timer
js_timer();


function div_write(str, inline_style)
{
	document.write('<div style="' + inline_style + '">' + str + '</div>');
	return;
}
</script>

<style type="text/css">
body
{
 margin:0; padding:0;
 font-family:sans-serif;
}
h1#page_title
{
 margin:0 0 10px;
 padding:1em;
 color:ccf;
 border-bottom:1px solid #ccf;
 background: #f3f3ff;
}
#testbed
{
 width:60%; margin:1em auto; padding:1em;
 font-family:monocode;
 border:1px solid #ccc;
}
#footer
{
 clear:both;
 padding:4px;
 font: 11px verdana,sans-serif;
 color:ccf;
 border:1px solid #ccf;
 border-width:1px 0;
 background: #f3f3ff;
 text-align:center;
}
</style>

</head>
<body>

<h1 id="page_title">bafflegate tracker js test</h1>

<div id="testbed">

<h4>calling tracker.js now</h4>

<!-- Test Script -->
<script type="text/javascript" src="../tracker.js"></script>
<script type="text/javascript">
  var baffleticket = 'test';
  bafflelog();    
</script>
<noscript><img alt="" src="../log.php?baffleticket=test&jsa=0"></noscript>

<a href="./intgr.tracker.htm?a=another+query+string;b=now+with+semicolons">self-reference</a>

<h4>bafflelog() complete</h4>

</div>

<!-- Footer -->
<script type="text/javascript">div_write('<div id="footer">js timer: ' +  js_timer() + ' s</div>');</script>

</body>
</html>
